<template>
<view>
	<view style="width: 100%;height: 1rpx;"></view>
	<view class="main">
		<block v-if="data.express">
			<u-time-line >
					<u-time-line-item v-for="(item,index) in data.express" :key="index">
						<template v-slot:content>
							<view>
							<view class="u-order-title" v-if="item.status">{{item.status}}</view>
								<view class="u-order-desc">{{item.context}}</view>
								<view class="u-order-time">{{item.time}}</view>
							</view>
						</template>
					</u-time-line-item>
			</u-time-line>
		</block>
		<block v-else>
			<u-empty text="暂无物流信息~" mode="favor"></u-empty>
		</block>
	</view>
</view>
</template>
<style>
	page{
		background-color: white;
	}
</style>
<style lang="scss" scoped>
	.u-node {
		width: 44rpx;
		height: 44rpx;
		border-radius: 100rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #d0d0d0;
	}
	.main{
		width: 690rpx;
		margin-left: 30rpx;
		margin-top: 30rpx;
	}
	.u-order-title {
		color: #333333;
		font-weight: bold;
		font-size: 32rpx;
	}
	
	.u-order-desc {
		color: rgb(150, 150, 150);
		font-size: 28rpx;
		margin-bottom: 6rpx;
	}
	
	.u-order-time {
		color: rgb(200, 200, 200);
		font-size: 26rpx;
	}
</style>
<script>
	export default {
		data() {
			return {
				id:'',
				data:[]
			}
		},
		
		  onShow() {
			 
		  },
		onLoad(option) {
		this.id = option.id
				let obj = {
					id:option.id
				}
				this.$u.api.shop.getLogistics(obj).then(res =>{
					console.log(res);
					if(res.code == 1 ){
						this.data = res.data
					}
				})
		},
		methods:{
			
		}
	}
</script>
